package com.itgaoshu.service.impl;

import com.itgaoshu.bean.Pay;
import com.itgaoshu.bean.Register;
import com.itgaoshu.bean.ZhuyuanRecord;
import com.itgaoshu.mapper.XPayMapper;
import com.itgaoshu.service.XPayService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: xiyue
 * Date: 2021/3/23
 * Time: 10:22
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Service
@Transactional
public class XPayServiceImpl implements XPayService {
    @Resource
    private XPayMapper xPayMapper;
    @Override
    public int updPay(Register register) {
        return xPayMapper.updPay(register);
    }

    @Override
    public int addPay(Register register) {
        return xPayMapper.addPay(register);
    }

    @Override
    public List<Pay> selPays(Register register) {
        return xPayMapper.selPays(register);
    }

    @Override
    public List<ZhuyuanRecord> selSurplus(ZhuyuanRecord lrecord) {
        return xPayMapper.selSurplus(lrecord);
    }
}
